package com.n9.buymsg.start;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.security.Security;

/**
 * 初始化程序
 * @author ice
 * @since 2019/1/29 17:08
 */
public class Initializer {
    private static final Logger log = LoggerFactory.getLogger(Launcher.class);

    /**
     * 系统初始化:初始化加载bouncycastle加密算法等等
     */
    private static void initSystem() {
        Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    }

    /**
     * 初始化工作
     */
    public static void init() {
        initSystem();
    }
}
